package edu.zut2.extends_demo;

public class Test {

    public static void main(String[] args) {
        Student student;
        student = new Student();
        student.setName("jack");
        student.setAge(20);
        student.setSex("男");
        student.stuNo = "20212201";
        student.dept = "软工数";
        student.say();
        Teacher teacher = new Teacher("张老师",50,"男","4102571133546654564",20,"计算机");
        teacher.say();

    }

}
